using UnityEngine;
using UnityEngine.UI;
public class IngredientPanel : MonoBehaviour
{
    public Image[] numShow = new Image[10];
    private int Num;
    
    private void SetNumShow()
    {
        Debug.Log($"SetNumShow");
        for (int i = 0; i < numShow.Length; i++)
        {
            numShow[i].gameObject.SetActive(false);
        }

        for (int i = 0; i < Num; i++)
        {
            numShow[i].gameObject.SetActive(true);
        }
    }

    public void SetNum(int num)
    {
        this.Num = num;
        SetNumShow();
    }
}